
import React,{Fragment} from 'react';
import { BrowserRouter ,Switch,Route } from 'react-router-dom';
// 私有组件方法
import PrivateRouter from "./components/privateRouter/index";

import Login from "./views/login";
import index from "./views/index";
// 去除默认样式
import './styles/main.scss'

export default class App extends React.Component{
    render() {
        return (
          <Fragment>
              <BrowserRouter >
                  <Switch>
                      <Route exact component={Login} path="/" />
                      <PrivateRouter  component={index} path="/index" />
                  </Switch>
              </BrowserRouter >
          </Fragment>
        );
    }
}
